package com.mxx.pmxt.controller;

import com.mxx.pmxt.service.GoodsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by 马潇霄 on 2017/4/20.
 */

@Controller
public class AdminController
{
    @Resource
    GoodsService goodsService;

    @RequestMapping("checkTrueGoods")
    public String checkTrueGoods(int gid){
        goodsService.checkTrueGoods(gid);
        return "redirect:/showAdminBeforeCheck";
    }

    @RequestMapping("checkFalseGoods")
    public String checkFalseGoods(int gid){
        goodsService.checkFalseGoods(gid);
        return "redirect:/showAdminBeforeCheck";
    }
}
